﻿{% extends 'base.html' %}
{% block title %}
<title>Wow Dkp Engine</title>
<meta name="Keywords" content="wow,dkp"/>
<meta name="description" content="A wow dkp system" />

{% endblock %}
{% load filter %}
{% block contents %}
<div id="header">
	<div id="main-menu">
		<ul class=menu>
			<li class="normal-page" ><a href="/">{{ multi_language.ca_home }}</a></li>
			<li class="normal-page"><a href="/pub/events/">{{ multi_language.ca_event }}</a></li>
			<li class="normal-page"><a href="/pub/players/">{{ multi_language.ca_players }}</a></li>
			<li class="normal-page"><a href="/pub/overview/class/">{{ multi_language.ca_class }}</a></li>
			<li class="normal-page"><a href="/pub/overview/score/">{{ multi_language.ca_overview}}</a></li>
			<li class="current-page"><a href="/admin/site/">{{ multi_language.ca_admin}}</a></li>
		</ul>
	</div>
</div>
<div id="main">
	<div id="main-sider-bar">
		<div id="sider-body">
			<ul id="admin-menu">
				<li class="normal-page"><a href="/admin/site/">{{ multi_language.ca_site_config }}</a></li>
				<li class="normal-page"><a href="/admin/events/">{{ multi_language.ca_event_manage }}</a></li>
				<li class="current-page"><a href="/admin/players/">{{ multi_language.ca_player_manage }}</a></li>
				<li class="normal-page"><a href="/admin/events/create/">{{ multi_language.ca_create_event }}</a></li>
				<li class="normal-page"><a href="/admin/events/import/">{{ multi_language.ca_import_event }}</a></li>
				<li class="normal-page"><a href="/admin/import/adjust/">{{ multi_language.ca_import_dkp }}</a></li>
			</ul>
		</div>
	</div>
	<div id="main-bar">
	<table id="playerlist" cellspacing="0" style="border-collapse:collapse">
		<thead class="table-title">
			<tr>
				<th>{{ multi_language.ca_players }}</th>
				<th>{{ multi_language.ca_gender }}</th>
				<th>{{ multi_language.ca_class }}</th>
				<th>{{ multi_language.ca_race }}</th>
				<th>{{ multi_language.ca_level }}</th>
				<th>{{ multi_language.ca_guild }}</th>
				<th>{{ multi_language.ca_edit }}</th>
				<th>{{ multi_language.ca_delete }}</th>
			</tr>
		</thead>
		<tbody>
		{% for player in players %}
			<tr class="player-row">
				<td><a href="/pub/players/{{ player.key.id }}" title="{{ player.player_name }}" style='color:{{ player.player_class|classcolor }}'><b>{{ player.player_name }}</b></td>
				<td>{{ player.player_sex }}</td>
				<td>{{ player.player_class }}</td>
				<td>{{ player.player_race }}</td>
				<td>{{ player.player_level }}</td>
				<td>{{ player.player_guild }}</td>
				<td><a href="/admin/players/edit/{{player.key.id}}">{{ multi_language.ca_edit }}</a></td>
				<td><a href="/admin/players/delete/{{player.key.id}}">{{ multi_language.ca_delete }}</a></td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
	<div id="paginate">
		{% if show_prev %}
			<span id="prev" class="paginate-button"><a href="/admin/players/page/{{ prev }}">{{ multi_language.ca_prev }}</a></span>
		{% endif %}
	
		{% for i in pages %}
			{% ifequal i page %}
				{{ i }}
			{% else %}
				<a href="/admin/players/page/{{ i }}">{{ i }}</a>
			{% endifequal %}
		{% endfor %}
	
		{% if show_next %}
			<span id="next" class="paginate-button"><a href="/admin/players/page/{{ next }}">{{ multi_language.ca_next }}</a></span>
		{% endif %}
	</div>
	</div>
</div>

{% endblock %}
